package HomeWork2;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class sy {


    public static void main(String[] args) {
        int money = 0;
        int a[] = new int[]{100, 2, 5, 89, 47, 20};
        for (int i = 0; i < a.length; i++) {
            if (money < a[i]) {
                money = a[i];
            }
        }
        System.out.println(money);
    }
}